<?php require VIEWPATH. ADMIN_DIR. DIRECTORY_SEPARATOR. 'header.php'?>
	<div class="page-header">
		<h1>修改登录密码</h1>
	</div>

	<div class="col-xs-12">
		<form class="form-horizontal" id="password-form">
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"> 老的登录密码：</label>
				<div class="col-sm-6">
					<input class="form-control" type="password" name="old_password" placeholder="请填写原来的登录密码"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"> 新的登录密码：</label>
				<div class="col-sm-6">
					<input class="form-control" type="password" name="new_password" placeholder="请填写新的登录密码"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"> 确认登录密码：</label>
				<div class="col-sm-6">
					<input class="form-control" type="password" name="new_password_2" placeholder="请确认新的登录密码"/>
				</div>
			</div>
			<div class="clearfix">
				<div class="col-md-offset-3 col-md-9">
					<button class="btn btn-info" type="submit">
						<i class="ace-icon fa fa-check"></i> 提交
					</button>
				</div>
			</div>
		</form>
	</div>
<?php require VIEWPATH. ADMIN_DIR. DIRECTORY_SEPARATOR. 'footer.php'?>
<script type="text/javascript">
	$(function(){
		// 提交表单
		var form = $("#password-form");
		var submitUrl = "<?=admin_url('home/modify_password_action')?>";
		form_submit(form, submitUrl, function(res) {
			tips_alert(res.msg, res.success, function(){
				if(res.success) window.location.reload();
			});
		})
	})
</script>